package com.wj.dao;


import com.wj.entity.Address;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface AddressDao extends JpaRepository<Address, Long> {

    /**
     * 根据 userId 查询 用户地址信息
     *
     * @param userId
     * @return
     */
    List<Address> findAllByUserId(Long userId);
}
